
import axios from '../utils/utils'

//添加分类
export let goodsaddcate = params => axios.post("/goods/addcate",params)

//获取分类 
export let catelist = params => axios.get("/goods/catelist",{params}) 

//删除分类 
export let delcate = params => axios.get("/goods/delcate",{params})

//修改分类
export let editcate = params => axios.post("/goods/editcate",params)

//获取商品列表
export let goodslist = params => axios.get("/goods/list",{params})

//删除商品列表
export let goodsdel = params => axios.get("/goods/del",{params})

//查询所有分类名称
export let categories = params => axios.get("/goods/categories",{params})

//添加商品 
export let goodsadd = params => axios.post("/goods/add",params)

//修改商品 
export let goodsedit = params => axios.post("/goods/edit",params)
